package com.example.demo.service.impl;

import com.example.demo.entity.Cla;
import com.example.demo.mapper.ClaMapper;
import com.example.demo.service.ClaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ClaServiceImpl implements ClaService {


    @Autowired
    ClaMapper claMapper;

    @Override
    public int save(Cla cla) {
        return claMapper.save(cla);
    }

    @Override
    public int delete(int Classname) {
        return claMapper.delete(Classname);
    }

    @Override
    public int update(Cla cla) {
        return claMapper.update(cla);
    }

    @Override
    public List<Cla> select() {
        return claMapper.select();
    }
}
